﻿using System;
using System.Collections.Generic;

namespace LogManager.Base.Data
{
    /// <summary>
    /// A event service that can export events from a custom source such as a log file 
    /// Is related to a log
    /// </summary>
    public interface IEventExportService : IDisposable
    {
        string LogName { get; set; }
        string ServerName { get; set; }
        
        /// <summary>
        /// Export events within a given time range
        /// </summary>
        /// <param name="start">Events have to be newer than start</param>
        /// <param name="end">Events have to be older than end</param>
        /// <returns>Events that match the criterias</returns>
        IEnumerable<IEvent> Export(DateTime start, DateTime end);  
    }
}